Import('*')

# Only build TraceCPU if we have support for protobuf as TraceCPU relies on it
if not env['CONF']['HAVE_PROTOBUF']:
    Return()

SimObject(
    'TraceCPU.py',
    sim_objects=['TraceCPU'],
    tags=['protobuf']
)
Source('trace_cpu.cc', tags=['protobuf'])

DebugFlag('TraceCPUData')
DebugFlag('TraceCPUInst')
